home *** CD-ROM | disk | FTP | other *** search
- function loadMp3(arg)
- {
- mp3_so.loadSound(_root.fsp_path + _root.folder + arg,false);
- this.checkLoadMusicProgress = function()
- {
- var _loc2_ = mp3_so.getBytesTotal();
- var _loc1_ = mp3_so.getBytesLoaded();
- if(_loc1_ > 0)
- {
- percent = Math.floor(_loc1_ / _loc2_ * 100);
- if(percent > 99)
- {
- clearInterval(music_check_interval);
- mp3_so.setVolume(100);
- mp3_so.start(0,0);
- }
- }
- };
- music_check_interval = setInterval(checkLoadMusicProgress,1000);
- }
-